package com.xcc.zuul;

import com.xcc.common.code.ErrorCode;
import com.xcc.common.result.ResultBody;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author frosty
 * @description
 * @date 2019-12-05 05:10:39
 */

@RestController
public class FilterController {

    /**
     * 未登录 或者token 过期
     * @return
     */
    @GetMapping("/notLogin")
    public ResultBody notLogin(){
        System.out.println("/notlogin");
        return  ResultBody.error(ErrorCode.NON_AUTHORITATIVE_INFORMATION.getCode(),ErrorCode.NON_AUTHORITATIVE_INFORMATION.getMessage());
    }

}
